using Indiefreaks.Xna.Input;
using Indiefreaks.Xna.Logic;

namespace Indiefreaks.Xna.Network.Local
{
    public class LocalIdentifiedPlayer : IdentifiedPlayer
    {
        /// <summary>
        /// Creates a new local player instance
        /// </summary>
        /// <param name="playerInput">The PlayerInput instance used by the Player</param>
        internal LocalIdentifiedPlayer(PlayerInput playerInput) : base(playerInput)
        {
            UniqueId = playerInput.LogicalPlayerIndex.ToString();
            IsHost = playerInput.LogicalPlayerIndex == LogicalPlayerIndex.One;
        }
    }
}